package bbb.sequence;

import java.util.List;

import bbb.BallInfo;

public class SingleResult {

	private List<BallInfo> bi;
	private BallInfo cur;

	public SingleResult(List<BallInfo> bi, BallInfo cur) {
		super();
		this.bi = bi;
		this.cur = cur;
	}

	public int getCount(){
		return bi.size();
	}
	
	public int getCost(){
		return 2 * bi.size();
	}
	
	public int getAward(){
		int result = 0 - getCost();
		for(BallInfo b : bi){
			if(b.getBlue() == cur.getBlue()){
				result += 5;
			}
		}
		return result;
	}
}
